﻿using System;
using Jayden.Dll.Web.Enums;
using Jayden.Dll.Web.HtmlControls.Descriptions;
using Jayden.Dll.Web.HtmlControls.Generics;
using Jayden.Dll.Web.HtmlControls.Interfaces;

namespace Jayden.Dll.Web.HtmlControls
{
	public class Param : HtmlElement, WithName, WithValue
	{
		public Param() : base(ParamDescription.Instance) { }

		public string Name { get { return this["name"]; } set { this["name"] = value; } }
		public string Value { get { return this["value"]; } set { this["value"] = value; } }
	}
	public class ParamDescription : HtmlElementDescription
	{
		public static readonly ParamDescription Instance = new ParamDescription();
		private ParamDescription() : base("param", HtmlVersion.Html4, false, false) { }
		public override Type ControlType { get { return typeof(Param); } }
		public override string Description { get { return "parameters for plugins invoked by object elements."; } }
	}
}
